package com.sdy.auth.biz.service.impl;

import com.sdy.mvc.service.impl.BaseServiceImpl;
import com.sdy.auth.biz.mapper.SysRoleResourceMapper;
import com.sdy.auth.biz.model.SysRoleResource;
import com.sdy.auth.biz.service.SysRoleResourceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色资源表 服务实现类
 * </p>
 *
 * @author zzq
 * @since 2019-06-14
 */
@Slf4j
@Service
public class SysRoleResourceServiceImpl extends BaseServiceImpl<SysRoleResource> implements SysRoleResourceService {
    @Autowired
    private SysRoleResourceMapper sysRoleResourceMapper;

    @Override
    public List<SysRoleResource> findRoleByResourceId(Integer resourceId) {
        return sysRoleResourceMapper.findRoleByResourceId(resourceId);
    }
}
